import { douBaoVoiceApi } from '@/api'

export default {
  // 提交精品长文本语音合成异步任务
  submitTask: (data: any) =>
    douBaoVoiceApi.post('tts_async/submit', data, {
      headers: {
        'Content-Type': 'application/json'
      }
    }),

  queryTask: (appid: string, taskId: string) =>
    douBaoVoiceApi.get('tts_async/query?appid=' + appid + '&task_id=' + taskId, {
      headers: {
        'Content-Type': 'application/json'
      }
    }),

}
